package cn.zjh.basic.mapper;

import cn.zjh.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    void save (T t);
    void delete (Long id);

    List<T> findAll();
    T findOne (Long id);
    //查询总数量
    Integer queryCount(BaseQuery baseQuery);

    //查询当前页的数据
    List<T> queryData(BaseQuery baseQuery);

    void patchDel(List<Long> ids);

    void update(T t);
}
